﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BRMC.IntelligentCommunity.IntelligentCommunity.Parkings
{
  public  class ParkingsBillingScheme : FullAuditedEntity<long>, IMustHaveTenant
    {
        /// <summary>
        /// 公司id 租户ID
        /// </summary>
        public int TenantId { get; set; }

        /// <summary>
        /// 车场编号
        /// </summary>
        public long ParkingId { set; get; }
        /// <summary>
        /// 车场名称
        /// </summary>
        public string ParkingName { set; get; }
        /// <summary>
        /// 车场编号
        /// </summary>
        public string ParkingCode { set; get; }
        /// <summary>
        /// 小区Id
        /// </summary>
        public long Neighbourhood_id { get; set; }
        /// <summary>
        /// 小区名称
        /// </summary>
        public string Neighbourhood_name { get; set; }

        /// <summary>
        /// 方案名称
        /// </summary>
        public string PlanName { set; get; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { set; get; }
        #region 临时车
        /// <summary>
        /// 临时车是否开闸
        /// </summary>
        public bool IsOpen { set; get; }
        /// <summary>
        /// 免费时长
        /// </summary>
        public int FreeTime { set; get; }
        /// <summary>
        /// 间隔时间
        /// </summary>
        public int IntervalTime { set; get; }
        /// <summary>
        /// 单价 间隔时间价格
        /// </summary>
        public decimal Univalent { set; get; }

        /// <summary>
        /// 封顶价格
        /// </summary>
        public decimal CappedPrice { set; get; }
        /// <summary>
        /// 按次收费价格
        /// </summary>
        public decimal   OnePrice { set; get; }

        /// <summary>
        /// 收费类型 0.按次收费 1.时间收费
        /// </summary>
        public   int ChargeType { set; get; }
        #endregion

        #region  月租车收费  
        /// <summary>
        /// 折扣率
        /// </summary>
        public double DiscountRate { set; get; }
        /// <summary>
        /// 月租价格
        /// </summary>
        public decimal MonthlyRentPrice { set; get; }

        /// <summary>
        /// 季付价格
        /// </summary>
        public decimal QuarterlyPrice { set; get; } 
        /// <summary>
        /// 半年价格
        /// </summary>
        public decimal HalfYearPrice { set; get; }
        /// <summary>
        /// 年付价格
        /// </summary>
        public decimal YearPrice { set; get; }
        /// <summary>
        /// 出售价格
        /// </summary>
        public decimal SellingPrice { set; get; }
        #endregion

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Enable { get; set; }

        /// <summary>
        /// 冗余时间
        /// </summary>
        public int? EndFreeTime { get; set; }
    }
}
